package com.generalbackend.common.constants;

import com.generalbackend.common.util.SystemProfileUtil;

/**
 * @author tim.xie
 * @date 2021/12/13 10:48
 */
public class Constants {

    public static final String MENU_PATH = SystemProfileUtil.getConfPath() + SystemProfileUtil.getFileSeparator() + "Permission.xml";
    public static final String MENU_PREFIX = "menu";
    public static final String MENU_MD5_KEY = "menu.md5";
    public static final String MENU_DESCRIPTION = "菜单权限文件MD5值";

    public static final String ID = "id";
    public static final String NAME = "name";
    public static final String URL = "url";
    public static final String SORT = "sort";
    public static final String TYPE = "type";
    public static final String ICON = "icon";
    public static final String MODULE = "module";
    public static final String DESCRIPTION = "description";
    public static final String __MENU__ = "__menu__";
    public static final String DATA = "data";
    public static final String TOTAL = "total";
    public static final String MESSAGE = "message";
    public static final String CODE = "code";

    /**
     * 用户默认信息
     */
    public static final String ADMIN = "admin";
    public static final String USER_ADMIN = "useradmin";
    public static final Long ADMIN_ID = 1L;
    public static final Long USER_ADMIN_ID = 2L;
    public static final String ADMIN_DEFAULT_PASSWORD = "1qazXSW!@#";
    public static final String USER_ADMIN_DEFAULT_PASSWORD = "1qazXSW!@#";
//    public static final String USER_DEFAULT_PASSWORD = "qweASD!@#";
    public static final String USER_DEFAULT_PASSWORD = "2wsxVFR_";
    public static final String ADMIN_NAME = "系统管理员";
    public static final String USER_ADMIN_NAME = "用户管理员";
    public static final String ADMIN_DESCRIPTION = "系统管理员,拥有系统的最高权限";
    public static final String USER_ADMIN_DESCRIPTION = "拥有管理用户权限";
    public static final Long DEFAULT_CREATE_USER = 1L;
    /**
     * 登录后保存在session中的KEY
     */
    public static final String USER_INFO = "userInfo";
    public static final String USER_ID = "userID";
    public static final String MENUS = "menus";
    /**
     * 系统配置
     */
    public static final String SYSTEM_CONFIG_PREFIX = "systemConfig";
    public static final String LOGIN_BACKGROUND_PIC_KEY = "backgroundPic";
}
